package me.linkcn.ydtxl.client;

import java.util.HashMap;

import android.provider.ContactsContract.Contacts;

/**
 * 应用程序常量定义
 * @author icer.He
 *
 */
public final class Consts {

	/** Log的标签 */
	public static final String TAG = "ydtxl"; 

    /**
     * Account type string.
     */
    public static final String ACCOUNT_TYPE = "me.linkcn.ydtxl";

    /**
     * Authtoken type string.
     */
    public static final String AUTHTOKEN_TYPE = "me.linkcn.ydtxl";
    
    /**
     * Rest Server url
     */
    public static final String SERVER_ADDRESS = "http://192.168.127.1:8088/yxdtxl_server/s/txl";
    
    /**
     * contact col
     */
    public static final String[] CONTACTS_SUMMARY_PROJECTION = new String[] {
        Contacts._ID, // 0
        Contacts.DISPLAY_NAME, // 1
        Contacts.STARRED, // 2
        Contacts.TIMES_CONTACTED, // 3
        Contacts.CONTACT_PRESENCE, // 4
        Contacts.PHOTO_ID, // 5
        Contacts.LOOKUP_KEY, // 6
        Contacts.HAS_PHONE_NUMBER, // 7
        Contacts.CONTACT_PRESENCE
    };
    
    /**
     * group map
     */
    public static final HashMap<String, String> groupName = new HashMap<String, String>();
    static {
    	groupName.put("System Group: My Contacts", "联系人");
    	groupName.put("System Group: Friends", "朋友");
    	groupName.put("System Group: Family", "家人");
    	groupName.put("System Group: Coworkers", "同事");
    	groupName.put("Starred in Android", "收藏");
    }
	

}
